feat(antd-py): expose new HealthStatus diagnostic fields#39
Merged
Conversation
Mirrors antd-go v0.5.0: HealthStatus now carries version, evm_network, uptime_seconds, build_commit, payment_token_address, and payment_vault_address. All default to "" / 0 so the dataclass remains constructable when talking to a pre-0.4.0 daemon that doesn't report them. Both REST clients (sync + async) and both gRPC clients (sync + async) share helpers — _health_status_from_json in _rest.py and _health_status_from_resp in _grpc.py — so the parsing only lives in one place each. Proto stubs regenerated. Mock RestClient test extended to populate + assert all 6 new fields. Added a regression test asserting that older-daemon responses (just status + network) still parse. Part of #37. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
15 tasks
Nic-dorman
added a commit
that referenced
this pull request
May 6, 2026
The check_health tool now returns the antd-py HealthStatus diagnostic fields (version, evm_network, uptime_seconds, build_commit, payment_token_address, payment_vault_address) alongside the existing healthy/network. They populate from the antd-py client; on a pre-0.4.0 daemon they come back as empty / 0 thanks to antd-py's defaults. This SDK is a thin MCP wrapper around antd-py — no model or proto changes needed here; once antd-py PR #39 lands, the client surfaces the new fields automatically. Part of #37. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the daemon-side enrichment shipped in #38 —
antd-py'sHealthStatusnow carriesversion,evm_network,uptime_seconds,build_commit,payment_token_address,payment_vault_address. All default to""/0so the dataclass remains constructable when talking to a pre-0.4.0 daemon.Changes
models.HealthStatus: 6 new fields with defaults_health_status_from_jsonhelper_health_status_from_resphelperRestClienttest populates + asserts all 6 fieldsTest plan
pytest tests/— 47 passed, 7 integration skipped (require live daemon)Part of #37.
🤖 Generated with Claude Code